package com.viewpagertext.adapters;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;

import java.util.List;

/**
 * @author ironjam
 * @version 1.0
 * @project AndroidMusic-master
 * @description
 * @date 2024/5/23 19:32:53
 */
public class SearchFragmentPagerAdapter extends FragmentPagerAdapter {
    private Fragment mData;

    public SearchFragmentPagerAdapter(FragmentManager fm, Fragment mData) {
        super(fm);
        this.mData = mData;
    }

    @Override
    public Fragment getItem(int position) {
        return mData;
    }

    @Override
    public int getCount() {
        return 1;
    }
}
